from django.db import models

# Create your models here.

class YidaUser(models.Model):
    id = models.AutoField(primary_key=True)
    dingtalk_user_id = models.CharField(max_length=64)
    user_name = models.CharField(max_length=64)
    corp_code = models.CharField(max_length=10)

    class Meta:
        db_table = 'xm_yida_user'

    def __str__(self) -> str:
        return super().__str__()